package com.cdsf.feignconsumer;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Author: kennedy
 * @Date: Created in 9:57 2018/3/16
 */
@RestController
public class ConsumerController {
    @Autowired
    HelloService helloService;

    @GetMapping("/feign-consumer")
    public String helloConsumer() {
        return helloService.hello();
    }
}
